package org.yin.hang.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.yin.hang.dao.lipinlxDao;
import org.yin.hang.pojo.lipinleib;
import org.yin.hang.pojo.mechanism;

import java.util.List;

@Controller
@RequestMapping("/lipinlx")
@CrossOrigin("*")
public class libinlxController {


   @Autowired
    private lipinlxDao lipinlxDao;

    @RequestMapping("/search")
    @ResponseBody
    public List<lipinleib> search() throws Exception{
        return lipinlxDao.getAll();
    }
}
